<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    /* bfc 区域不会与浮动元素重叠，而是会依次排列 */
    /* body {
      width: 600px;
      position: relative;
    }

    .left {
      width: 80px;
      height: 150px;
      float: right;
      background-color: blue;
    }
    .right {
      height: 200px;
      background-color: red;
      overflow: hidden;
    } */

    /* 浮动元素的高度也参与BFC的高度计算 */

    /* .root {
      width: 300px;
      border: 5px solid black;
      overflow: hidden;
    }

    .child {
      border: 5px solid red;
      width: 100px;
      height: 100px;
      float: left;
    } */
  </style>
  <body>
    <!-- <div class="left"></div>
    <div class="right"></div> -->

    <!-- <div class="root">
      <div class="child child1"></div>
      <div class="child child2"></div>
    </div> -->
  </body>
</html>
